import request from '@/utils/request.js'

// 商品详情
export function getGoodsAPI(id) {
  return request({
    method: 'GET',
    url: '/goods',
    params: {
      id
    }
  })
}

// 热销推荐
export function getHotAPI(data) {
  return request({
    method: 'GET',
    url: '/goods/hot',
    params: {
      id: data.id,
      type: data.type,
      limit: 4
    }
  })
}
